Previous Book Contents Book Index Next

Inside Macintosh: Programming With MRJToolkit /
Chapter 2 - MRJToolkit Reference / Application-Defined Methods
The MRJQuitHandler Interface /


handleQuit

Handles a quit request.

public void handleQuit ();
DISCUSSION
This application-defined method is called when the Finder requests that the application quit. For example, this occurs when the user selects the Shutdown menu item in the Finder. Typically, your method should perform any necessary cleanup (and possibly ask if the user really wants to quit) and then call the method java.lang.System.exit(). You must register the method name by calling the registerQuitHandler method (page 45) when initializing the application. The handleQuit method is only useful if you have packaged your Java application using JBindery.

SEE ALSO
The registerQuitHandler method (page 45).


Previous Book Contents Book Index Next

© Apple Computer, Inc.
12 NOV 1997